<table class="table table-responsive" id="navigates-table">
    <thead>
        <th>跳转类型</th>
        <th>跳转ID</th>
        <th>跳转地址</th>
        <th>名称</th>
        <th>图片</th>
        <th>排序</th>
        <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($navigates as $navigate)
        <tr>
            <td>@if($navigate->skip_type==1)
                    跳转分类
                @elseif($navigate->skip_type==2)
                    跳转小程序链接
                @elseif($navigate->skip_type==3)
                    跳转客服
                @endif
            </td>
            <td>{!! $navigate->skip_id !!}</td>
            <td>{!! $navigate->skip_url !!}</td>
            <td>{!! $navigate->image_name !!}</td>
            <td>
                @tpic($navigate->image)
            </td>
            <td>{!! $navigate->sort !!}</td>
            <td>
                {!! Form::open(['route' => ['navigates.destroy', $navigate->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
                    <a href="{!! route('navigates.show', [$navigate->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
                    <a href="{!! route('navigates.edit', [$navigate->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
                </div>
                {!! Form::close() !!}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>